import java.sql.SQLOutput;
import java.util.Arrays;
import java.util.SortedMap;

public class StringTest {
    public static void main(String[] args) {
//        byte [] arr = new byte[]{97,98,99};
//        char [] arr2 = new char[]{'a','b','c'};
//
//        String str = new String(arr,1,1);
//        String str2 = new String(arr2);
//       // String str3 = new String(arr3);
//        System.out.println(str);
//        System.out.println(str2);
       /* System.out.println("abcd".toUpperCase());
        System.out.println(Arrays.toString("abcd".getBytes()));
        System.out.println("abcd".lastIndexOf("cd"));
        System.out.println("abcd".substring(1,2));
        System.out.println("abcdef".startsWith("abcd"));
        System.out.println("abcd".indexOf("bc"));
        System.out.println("abcd".indexOf("bc",));
*/

//        System.out.println("abcd".charAt(2));
//        System.out.println(Arrays.toString("a-b-c-d".split("-")));
//        System.out.println("abcd".equalsIgnoreCase("abcdd"));
        char[] arrChar = new char[]{'我', '是', '中'};
        System.out.println(Arrays.toString("abcd".toCharArray()));
        System.out.println(arrChar);
        String s = String.valueOf(new StringTest());
        //int *p=&s;
        int i = 5;
        System.out.println(s);
        StringBuffer sb = new StringBuffer("a+b");
        sb.append("ddddddd=");
        sb.append("+a+i" + i);
        System.out.println(sb);


    }
}
